package com.heaven.mapper;

import com.heaven.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {


    List<User> list(String name);

    void deleteById(Integer id);

    void add(User user);

    void update(User user);

    User getByUsernameAndPassword(User user);

    void updatePassword(User e);
}
